﻿<UserControl x:Class="Undercover.View.Game.DiscussAndVoteControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
        <TextBlock Text="在此阶段的每一轮，各玩家依次发言，最后投票给各自认为是鬼的玩家。每人只能投一票或弃权。" TextWrapping="Wrap"/>
        <StackPanel VerticalAlignment="Center">
            <TextBlock Text="{Binding Round}" HorizontalAlignment="Center" FontSize="36"/>
            <TextBlock Text="建议发言顺序"/>
            <TextBlock Text="{Binding OrderSuggestion}" HorizontalAlignment="Center"/>
            <TextBlock Text="阵亡玩家"/>
            <TextBlock Text="{Binding DeadIDs}" HorizontalAlignment="Center"/>
        </StackPanel>
        <Grid VerticalAlignment="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="投给" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="0"/>
            <TextBox Text="{Binding Candidate, Mode=TwoWay}" Grid.Column="1" InputScope="Number"/>
            <Button Content="确定" Command="{Binding VoteCommand}" VerticalAlignment="Center"  HorizontalAlignment="Right" Grid.Column="2"/>
        </Grid>
    </Grid>
</UserControl>